package com.pth.action;

import com.opensymphony.xwork2.ActionSupport;
import com.pth.model.Pxdata;
import com.pth.service.PxdataService;

public class OnlinePxdataAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private int id;
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public PxdataService getPxdataService() {
		return pxdataService;
	}

	public void setPxdataService(PxdataService pxdataService) {
		this.pxdataService = pxdataService;
	}

	public Pxdata getPxdata() {
		return pxdata;
	}

	public void setPxdata(Pxdata pxdata) {
		this.pxdata = pxdata;
	}

	private PxdataService pxdataService;
	
	private Pxdata pxdata;
	
	
	@Override
	public String execute() throws Exception {

		pxdata=pxdataService.getPxdataByid(id);
		
		return SUCCESS;
	
	}
	
}
